<?php
namespace Forms\Filter;

use Pinenut\Form\Filter;

class SetDefaultAction extends Filter
{
	public function run()
	{
		$value = $this->request->value;
		
		if (empty($value)) {
			$value = $this->request->default;
		}
		
		return $value;
	}
}